import Layout from "@/page/Layout";
import Month from "@/page/Month";
import New from "@/page/New";
import Year from "@/page/Year";
import { createHashRouter } from "react-router-dom";

const router = createHashRouter([
  {
    path: '/', element: <Layout />,
    children: [
      {
        index: true, // 默认子路由
        element: <Month />
      },
      {
        path: 'year',
        element: <Year />
      }
    ]
  },
  { path: '/new', element: <New /> }
])

export default router